
import type { AsyncData } from "#app";
import type { UseFetchOptions } from "#app/composables/fetch";
import type { UserInfoApiRecord, UserInfoRecord } from "~/global/record/Login";
import type { ApiDataRecord } from "~/global/record/ApiRecord";
export function getInfo(params: object = {}, options: UseFetchOptions<any> = {}): Promise<AsyncData<UserInfoApiRecord<UserInfoRecord>, any>> {
  return request.useFetch("/getInfo", {
    params,
    method: "GET",
    ...options,
  });
}